package com.zhuhao.design_mode.structural_pattern.adapter;

/**
 * 火鸡适配器，让火鸡伪装鸭子
 *
 * @Author halk
 * @Description
 * @Date 2022/8/4 17:30
 * @Param
 * @return
 **/
public class TurkeyAdapter implements Duck {
    Turkey turkey;

    public TurkeyAdapter(Turkey turkey) {
        this.turkey = turkey;
    }

    @Override
    public void quack() {
        turkey.gobble();
    }
}
